package com.hmall.user.config;

import com.hmall.utils.AliyunConstant;
import com.hmall.utils.SMSUtils;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class SmsConfig {
    @Bean
    public SMSUtils getSMSUtils(AliyunConstant aliyunConstant) {
        return new SMSUtils(aliyunConstant.getRegionId(), aliyunConstant.getAccessKeyId(), aliyunConstant.getAccessKeySecret());
    }
}
